#include "PollServer.hpp"

int main(int argc, char *argv[])
{
    if(argc != 2)
    {
        LOG(LogLevel::FATAL) << "Usage: " << argv[0] << " + port";
        return USAGE_ERROR;
    }
    
    in_port_t port = std::stoi(argv[1]);
    std::unique_ptr<PollServer> server = std::make_unique<PollServer>(port);
    server->Run();
    return 0;
}